/*
  HvacReset
  Part of the HVAC series of libraries for the Arduino. 
  Calculates direct/reverse reset ouput based on input.
 
  This example code is in the public domain.
  
  Matt Dobey
  3/13/2013
  version: 1_0
*/

#ifndef HvacReset_h
#define HvacReset_h

#include "Arduino.h"

class HvacReset
{
  public:

    #define AUTOMATIC	0
    #define DIRECT	1
    #define REVERSE	2

    HvacReset(byte action);
    double reset(double x2, double x1, double x3, double y1, double y3);  
  private:
    double outVal;
    double _action;
    double _directReset(double x1, double x2, double x3, double y1, double y3); 
    double _reverseReset(double x1, double x2, double x3, double y1, double y3); 
};

#endif
